package com.xh01;

/**
 * @author Mucd
 * @Date 2020
 */
public class Person {
    private  String phone;
    private double price;

    public void setPhone(String phone){
        this.phone = phone;
    }
    public String getPhone(){
        return phone;
    }
    public void setPrice(double price){
        this.price = price;
    }
    public double getPrice(){
        return price;
    }

    public Person(){}
    public Person(String phone,double price){
        this.phone = phone;
        this.price = price;
    }

//    @Override
//    public String toString() {
//        return "Person{" +
//                "phone='" + phone + '\'' +
//                ", price=" + price +
//                '}';
//    }
    public String toString(String phone,double price){
        return "Person{" + "phone" + getPhone() + "\'" + "price" +getPrice()+"}";
    }


}
